<template>
  <div></div>
</template>

<script setup lang="ts">
import { useStore } from 'vuex'
import { useRouter } from 'vue-router'
import { getPrivateFm } from '@/service/private-fm'

const store = useStore()
const router = useRouter()
const pullPrivateFm = () => {
  getPrivateFm().then((res: any) => {
    const row = res.data[0]
    row.singel = true
    store.dispatch('music/playMusic', row)
    router.push('/main/nowmusic')
  })
}
pullPrivateFm()
</script>

<style scoped></style>
